import xlrd


class RegisterData:
    # 打开测试数据excel表
    book = xlrd.open_workbook(filename='D:/工作/2023_07/data.xlsx')
    # 选择成功注册页
    st = book.sheet_by_index(1)
    # 获取数据行数
    row_num = st.nrows
    # 准备成功注册数据
    register_data = []
    for i in range(1, row_num):
        data = st.row_values(i)
        register_data.append(data)
